package icu.groot.alan.hotel.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * Account
 */
@Data
@TableName("`account`")
public class AccountDo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编码
     */
    @TableId(type = IdType.AUTO)
    private Integer accCode;

    /**
     * 用户名字
     */
    private String accName;

    /**
     * 用户账号手机号码
     */
    private String accPhone;

    /**
     * 用户密码
     */
    private String accPassword;

    /**
     * 用户余额
     */
    private BigDecimal accBalance;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 逻辑删除
     */
    @TableLogic(value = "0", delval = "1")
    private Boolean deleted;

}

